import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '@/views/login/index'
// import GoodsList from '@/views/goodsList/index'
import Classify from '@/views/classify/index'
import My from '@/views/my/index'
import shopCar from '@/views/shopCar/index'
import Index from '@/views/indexx/index'
// import Search from '@/views/search/index'
import Layout from '@/views/layout.vue'

Vue.use(VueRouter)

const routes = [
  {path:'/login', component:Login},
  {
    path:'/',
    component:Layout,
    children:[
  {path:'indexx', component:Index},
  {path:'classify', component:Classify},
  {path:'my', component:My},
  {path:'shopcar', component:shopCar},

]}
]

const router = new VueRouter({
  routes
})

export default router
